﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Castle.MicroKernel;

namespace MShop.Core.Service.Context
{
    public class ShopContextService:IShopContextService
    {
        private readonly IKernel _Kernel;
        public ShopContextService(Castle.MicroKernel.IKernel kernel)
        {
            _Kernel = kernel;
        }


        #region IShopContextService Members

        public IShopContext GetContext()
        {
           return  _Kernel.Resolve<IShopContext>();
        }

        #endregion
    }
}